<?php global $options; foreach ($options as $value) {if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }}?>

		<div class="slider_container">
			
			<div class="slider_image">
				
				<div id="fs_<?php echo $pl_category; ?>" class="sliderwrapper_feet">
			 <?php $temp_query = clone $wp_query; ?> 
			 <?php query_posts('category_name=' . $pl_category . '&showposts=7');?>
			
			 <?php while (have_posts()) : the_post(); if (current_user_can('level_2')) {} else {if (in_category('private')) continue;}
			 if ($images = get_children(array(
				'post_parent' => $post->ID,
				'numberposts' => '1',
				'post_type' => 'attachment',
				'post_mime_type' => 'image',
				'order' => 'ASC',
				'orderby' => 'menu_order')))  
			 foreach($images as $image) {  
				$featured_image = $image->guid; 
				} else {
				$featured_image = site_url('/wp-content/themes/exehill2/images/featured_noimage.png');
				} ?>


					<div class="contentdiv">
				
					  	<div class="slider_display" style="background:url(<?php echo $featured_image; ?>) no-repeat; ">

							
						</div>
	
					</div>
			<?php endwhile; ?> <?php $wp_query = clone $temp_query; ?>
			   </div>

		</div>
			 <?php $temp_query = clone $wp_query; ?> 
			 <?php query_posts('category_name=' . $pl_category . '&showposts=7');?>
		<div class="slider_right">
			 
			<div id="paginate-fs_<?php echo $pl_category; ?>" class="slider_pagination">
			
			 <?php while (have_posts()) : the_post(); if (current_user_can('level_2')) {} else {if (in_category('private')) continue;}?>
		
			<div id="slider_navi" onmouseover="Tip('Click to continue reading')" onmouseout="UnTip()"><a  href="<?php the_permalink(); ?>" class="toc"><?php the_title (); ?></a></div> 
			
			<?php endwhile; ?> <?php $wp_query = clone $temp_query; ?>

			</div>
		</div>
		
		<div class="clear">
		</div>
	
	</div>
	<script type="text/javascript">

featuredcontentslider.init({
	id: "fs_<?php echo $pl_category; ?>",
	contentsource: ["inline", ""], 
	toc: "markup",  
	nextprev: ["Previous", "Next"], 
	revealtype: "mouseover",
	enablefade: [true, 0.2],  
	autorotate: [false, 3000], 
	onChange: function(previndex, curindex){  
	}
})

</script>
<div class="vid_bottominfo"><a href="<?php bloginfo('home'); ?>/category/<?php echo $pl_category; ?>/"><?php if ($exehill_cat_link) { echo $exehill_cat_link; } else { ?>View all posts in <?php echo $pl_category; ?><?php } ?></a></div>